import { ObjectId } from "mongodb";
import { mongo } from "../mogoConfig";


const db = mongo.db("my_test")
db.collection("inventory")
    .deleteOne(
        { "_id": new ObjectId("673d34fcad6af8d530dfcd0e") }
    ).then(result => {
        console.log(JSON.stringify(result))
    }).catch(error => {
        console.log(error)
    }).finally(() => {
        mongo.close()
    })

console.log("执行结束")